import '../app_constants.dart';

class Api{

  static const String _DEV_BASE_URL = 'http://125.124.51.128/auntapi/';
  static const String _DEV_BASE_URL_COMMON = 'http://125.124.51.128/api/';

  static const String  _LOCAL_BASE_URL = 'http://192.168.0.110:8082/uncle_web/auntapi/';
  static const String  _LOCAL_BASE_URL_COMMON = 'http://192.168.0.110:8082/uncle_web/api/';

  static const String _TEST_BASE_URL = 'https://www.uncleserv.top/auntapi/';
  static const String _TEST_BASE_URL_COMMON = 'https://www.uncleserv.top/api/';

  static const String _RELEASE_BASE_URL = 'https://www.uncleserv.com/auntapi/';
  static const String _RELEASE_BASE_URL_COMMON = 'https://www.uncleserv.com/api/';


  /*阿姨端接口-------命名规范！*/
  static const String WELCOME = "user/getAccessBanner"; //启动页图片
  static const String AUTO_LOGIN = "user/autoLogin";//个人自动登录
  static const String COMPANY_AUTO_LOGIN = "user/companyAutoLogin";//团队长自动登录
  static const String LOGIN = "user/login";//个人登录
  static const String COMPANY_LOGIN = "user/companyLogin";//团队长登录
  static const String HOME_ORDER_LIST = "home/orderList";//获取订单池列表
  static const String ORDER_LIST_NEW = "order/orderListNew";//获取订单列表
  static const String ORDER_DETAIL = "order/orderDetail";//获取订单详情
  /*阿姨端接口-------命名规范！*/

  static String getAuntUrl(VersionStatus versionStatus){
    switch(versionStatus){
      case VersionStatus.Development:
        return Api._DEV_BASE_URL;
      case VersionStatus.Test:
        return Api._TEST_BASE_URL;
      case VersionStatus.Release:
        return Api._RELEASE_BASE_URL;
      case VersionStatus.Local:
        return Api._LOCAL_BASE_URL;
      default:
        return Api._RELEASE_BASE_URL;
    }
  }
}
